package com.hctforgreen.greenservice.utils;

/**
 * Author:liuyanguo
 * Date:2018/1/15
 * Time:17:00
 * Description:
 */

public class ContantsUtil {
    public static String sStaffRole = "";
    public static String sRolePosition = "1";
    public static String sPersonId = "";
    public static boolean isSubmitPaper = false;
    public static final String ERROR_ROLE = "错误角色";

//    public static int sTrainType;
//    public static final int TERMINAL_TRAIN = 0;
//    public static final int AFTER_SALE_TRAIN = 1;

    public static String sPhoneNumber;
    public static String[] mRoles = new String[]{
            "家用空调安装",
            "家用空调维修",
            "家用空调安装和维修",
            "家用和商用安装",
            "家用和商用维修",
            "家用和商用安装和维修",
            "商用安装",
            "商用维修",
            "商用安装和维修"
    };

    public static void initRolePosition() {
        switch (sStaffRole) {
            case "家用空调安装":
                sRolePosition = "1";
                break;
            case "家用空调维修":
                sRolePosition = "2";
                break;
            case "家用空调安装和维修":
                sRolePosition = "3";
                break;
            case "家用和商用安装":
                sRolePosition = "4";
                break;
            case "家用和商用维修":
                sRolePosition = "5";
                break;
            case "家用和商用安装和维修":
                sRolePosition = "6";
                break;
            case "商用安装":
                sRolePosition = "7";
                break;
            case "商用维修":
                sRolePosition = "8";
                break;
            case "商用安装和维修":
                sRolePosition = "9";
                break;
            default:
                break;
        }
    }
}
